package entities;
import java.sql.Date;



/**
 * @author HungVM
 * @version 1.0
 * @created 12-Thg10-2011 10:44:34 CH
 */
public class Customer {
	private String address;
	private Date birthDay;
	private int customeId;
	private String email;
	private double grossSalary;
	private String identity;
	private String lastName;
	private String firstName;
	private String note;
	private String organzination;
        private boolean sex;
	private String phone;
	private boolean status;
	private User user;
        
	//public LoanContact m_LoanContact;

	public Customer(){

	}

    public Customer(String address, Date brithDay, int customeId, String email,double grossSalary, String identity, String lastName, String firstName, String note, String organzination, boolean sex, String phone, boolean status, User user) {
        this.address = address;
        this.birthDay = brithDay;
        this.customeId = customeId;
        this.email = email;
        this.grossSalary = grossSalary;
        this.identity = identity;
        this.lastName = lastName;
        this.firstName = firstName;
        this.note = note;
        this.organzination = organzination;
        this.sex = sex;
        this.phone = phone;
        this.status = status;
        this.user = user;
    }

    

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(Date brithDay) {
        this.birthDay = brithDay;
    }

    public int getCustomeId() {
        return customeId;
    }

    public void setCustomeId(int customeId) {
        this.customeId = customeId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public double getGrossSalary() {
        return grossSalary;
    }

    public void setGrossSalary(double grossSalary) {
        this.grossSalary = grossSalary;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getOrganzination() {
        return organzination;
    }

    public void setOrganzination(String organzination) {
        this.organzination = organzination;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public void finalize() throws Throwable {

    }

    /**
     * @return the sex
     */
    public boolean isSex() {
        return sex;
    }

    /**
     * @param sex the sex to set
     */
    public void setSex(boolean sex) {
        this.sex = sex;
    }
    
    public String getFullname(){
        String fullName = this.firstName + " "+ this.lastName;
        return fullName;
    }

}